<?php

	session_start();
	include 'db_connect.php';
	
	$user = $_POST['user'];
	$pass = $_POST['pass'];
	
	$_SESSION['username'] = "";
	
	$r = mysql_query("SELECT * FROM account WHERE username = '$user' AND password = '$pass';");
	while ($fila = mysql_fetch_array($r)){$_SESSION['username'] = $fila[3];}	
	header ("location: ../")
?>